package com.xcm.controller;

import com.xcm.dao.feign.DcClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {
	@Autowired
	private DcClient dcClient;
	@GetMapping("/consumer")
	public Object dc() {
		String consumer = dcClient.consumer();
		System.out.println(consumer);
		return dcClient.consumer();
	}
}
